





def insert_sort(tg_list):
    ''' 排序算法：插入排序 '''
    for i in range(1, len(tg_list)):
        for j in range(i, 0, -1):
            if tg_list[j] < tg_list[j - 1]:
                tg_list[j - 1], tg_list[j] = tg_list[j], tg_list[j - 1]
            else:
                break
            return



print(insert_sort([23, 523, 42,1, 4, 66]))